// house_pkg/pages/building/index.ts
Page({
  data: {
    size: 0,
    type: '',
    points: ''
  },
  onLoad({ points }) {
    this.fake(points)
  },
  fake(points) {
    const size = Math.floor(Math.random() * 4) + 3
    const type = size > 4 ? '号楼' : '栋'
    this.setData({ size, type, points })
  }
})